.class public Les/mo0;
.super Les/ko0;
.source "AESDecrypterBC.java"

# interfaces
.implements Les/lo0;


# instance fields
.field protected g:Lorg/bouncycastle/crypto/b;

.field protected h:Les/dq0;

.field protected i:Les/cq0;


# direct methods
.method public constructor <init>([B[B[B)V
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/util/zip/ZipException;
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Les/ko0;-><init>()V

    .line 2
    iput-object p2, p0, Les/ko0;->a:[B

    .line 3
    new-instance v0, Les/bq0;

    invoke-direct {v0}, Les/bq0;-><init>()V

    const/16 v1, 0x3e8

    .line 4
    invoke-virtual {v0, p1, p2, v1}, Lorg/bouncycastle/crypto/f;->a([B[BI)V

    const/16 v2, 0x210

    .line 5
    invoke-virtual {v0, v2}, Les/bq0;->a(I)Lorg/bouncycastle/crypto/b;

    move-result-object v2

    iput-object v2, p0, Les/mo0;->g:Lorg/bouncycastle/crypto/b;

    .line 6
    check-cast v2, Les/eq0;

    invoke-virtual {v2}, Les/eq0;->a()[B

    move-result-object v2

    const/16 v3, 0x20

    new-array v4, v3, [B

    .line 7
    iput-object v4, p0, Les/ko0;->b:[B

    const/4 v5, 0x0

    .line 8
    invoke-static {v2, v5, v4, v5, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    new-array v4, v3, [B

    .line 9
    iput-object v4, p0, Les/ko0;->c:[B

    .line 10
    invoke-static {v2, v3, v4, v5, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    const/4 v3, 0x2

    new-array v4, v3, [B

    .line 11
    iput-object v4, p0, Les/ko0;->d:[B

    const/16 v6, 0x40

    .line 12
    invoke-static {v2, v6, v4, v5, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 13
    iget-object v2, p0, Les/ko0;->d:[B

    invoke-static {v2, p3}, Les/po0;->a([B[B)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 14
    invoke-virtual {v0, p1, p2, v1}, Lorg/bouncycastle/crypto/f;->a([B[BI)V

    const/16 p1, 0x100

    .line 15
    invoke-virtual {v0, p1}, Les/bq0;->a(I)Lorg/bouncycastle/crypto/b;

    move-result-object p1

    iput-object p1, p0, Les/mo0;->g:Lorg/bouncycastle/crypto/b;

    .line 16
    new-instance p1, Les/cq0;

    new-instance p2, Les/zp0;

    invoke-direct {p2}, Les/zp0;-><init>()V

    invoke-direct {p1, p2}, Les/cq0;-><init>(Lorg/bouncycastle/crypto/c;)V

    iput-object p1, p0, Les/mo0;->i:Les/cq0;

    .line 17
    new-instance p2, Les/eq0;

    iget-object p3, p0, Les/ko0;->c:[B

    invoke-direct {p2, p3}, Les/eq0;-><init>([B)V

    invoke-virtual {p1, p2}, Les/cq0;->a(Lorg/bouncycastle/crypto/b;)V

    .line 18
    new-instance p1, Les/dq0;

    new-instance p2, Les/aq0;

    invoke-direct {p2}, Les/aq0;-><init>()V

    invoke-direct {p1, p2}, Les/dq0;-><init>(Lorg/bouncycastle/crypto/a;)V

    iput-object p1, p0, Les/mo0;->h:Les/dq0;

    .line 19
    invoke-virtual {p1}, Les/dq0;->a()I

    move-result p1

    iput p1, p0, Les/ko0;->e:I

    const/4 p1, 0x1

    .line 20
    iput p1, p0, Les/ko0;->f:I

    return-void

    .line 21
    :cond_0
    new-instance p1, Ljava/util/zip/ZipException;

    new-instance p2, Ljava/lang/StringBuilder;

    const-string v0, "WRONG PASSWORD - "

    invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Les/ko0;->d:[B

    invoke-static {v0}, Les/po0;->c([B)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "/ "

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p3}, Les/po0;->c([B)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/util/zip/ZipException;-><init>(Ljava/lang/String;)V

    throw p1
.end method


# virtual methods
.method protected a([BII)V
    .locals 4

    .line 1
    iget v0, p0, Les/ko0;->e:I

    new-array v0, v0, [B

    .line 2
    iget v1, p0, Les/ko0;->f:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Les/ko0;->f:I

    const/16 v2, 0x10

    invoke-static {v1, v2}, Les/po0;->a(II)[B

    move-result-object v1

    .line 3
    new-instance v2, Les/fq0;

    iget-object v3, p0, Les/mo0;->g:Lorg/bouncycastle/crypto/b;

    invoke-direct {v2, v3, v1}, Les/fq0;-><init>(Lorg/bouncycastle/crypto/b;[B)V

    .line 4
    iget-object v1, p0, Les/mo0;->h:Les/dq0;

    const/4 v3, 0x0

    invoke-virtual {v1, v3, v2}, Les/dq0;->a(ZLorg/bouncycastle/crypto/b;)V

    sub-int/2addr p3, p2

    .line 5
    iget v1, p0, Les/ko0;->e:I

    if-lt p3, v1, :cond_0

    .line 6
    iget-object p3, p0, Les/mo0;->i:Les/cq0;

    invoke-virtual {p3, p1, p2, v1}, Les/cq0;->a([BII)V

    .line 7
    iget-object p3, p0, Les/mo0;->h:Les/dq0;

    invoke-virtual {p3, p1, p2, v0, v3}, Les/dq0;->a([BI[BI)I

    .line 8
    iget p3, p0, Les/ko0;->e:I

    invoke-static {v0, v3, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object v1, p0, Les/mo0;->i:Les/cq0;

    invoke-virtual {v1, p1, p2, p3}, Les/cq0;->a([BII)V

    .line 10
    iget v1, p0, Les/ko0;->e:I

    new-array v1, v1, [B

    .line 11
    invoke-static {p1, p2, v1, v3, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 12
    iget-object v2, p0, Les/mo0;->h:Les/dq0;

    invoke-virtual {v2, v1, v3, v0, v3}, Les/dq0;->a([BI[BI)I

    .line 13
    invoke-static {v0, v3, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    :goto_0
    return-void
.end method

.method public a()[B
    .locals 4

    .line 14
    iget-object v0, p0, Les/mo0;->i:Les/cq0;

    invoke-virtual {v0}, Les/cq0;->a()I

    move-result v0

    new-array v0, v0, [B

    .line 15
    iget-object v1, p0, Les/mo0;->i:Les/cq0;

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Les/cq0;->a([BI)I

    const/16 v1, 0xa

    new-array v3, v1, [B

    .line 16
    invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    return-object v3
.end method

.method public b([BI)V
    .locals 2

    const/4 v0, 0x0

    .line 1
    :goto_0
    array-length v1, p1

    if-ge v0, v1, :cond_1

    if-lt v0, p2, :cond_0

    goto :goto_1

    .line 2
    :cond_0
    invoke-virtual {p0, p1, v0, p2}, Les/mo0;->a([BII)V

    .line 3
    iget v1, p0, Les/ko0;->e:I

    add-int/2addr v0, v1

    goto :goto_0

    :cond_1
    :goto_1
    return-void
.end method
